package com.morizhang.merchanmanager.api.dao;

import com.morizhang.merchanmanager.api.model.PriceModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PriceInfoDao {
    public List<PriceModel> selectAllCommoditySellPrice();
    public PriceModel queryCommoditySellPriceByBarcode(String barCode);
    public void addCommoditySellPrice(PriceModel priceModel);
    public void updateCommoditySellPrice(PriceModel priceModel);
    public void deleteCommoditySellPrice(String barCode);

    public PriceModel queryCommodityStockPrice(String serialNo);
    public List<PriceModel> queryCommodityStockPriceByBarcode(String barCode);
    public PriceModel queryCommodityStockPriceByBarcodeBatchNo(PriceModel priceModel);
    public void addCommodityStockPrice(PriceModel priceModel);
    public void updateCommodityStockPrice(PriceModel priceModel);
    public void deleteCommodityStockPrice(PriceModel priceModel);

}
